{validate form="user_edit_info" id="v_email_valid" append="update_info_error" message="Email is not valid."}
{validate form="user_edit_info" id="v_email_unique" append="update_info_error" message="Email already exists."}
{validate form="user_edit_info" id="v_code_regexp" append="update_info_error" message="Code must contain a maximum of six characters if not empty (letters and numbers only)."}
{validate form="user_edit_info" id="v_activated" append="update_info_error" message="Activated selection is not valid."}
{validate form="user_edit_info" id="v_admin" append="update_info_error" message="Administrator selection is not valid."}
{validate form="user_edit_info" id="v_blocked" append="update_info_error" message="Blocked selection is not valid."}
{validate form="user_edit_pass" id="v_new_password_regexp" append="update_pass_error" message="New password must contain at least six characters (letters and numbers only)."}
{validate form="user_edit_pass" id="v_confirm_password_regexp" append="update_pass_error" message="Confirm password must contain at least six characters (letters and numbers only)."}
{validate form="user_edit_pass" id="v_new_password_equal" append="update_pass_error" message="New password and confirm password do not match."}
{if $update_info_button}
	<div class="failed">
		{foreach $update_info_error as $message}
			{$message}<br />
		{/foreach}
	</div>
{elseif $update_pass_button}
	<div class="failed">
		{foreach $update_pass_error as $message}
			{$message}<br />
		{/foreach}
	</div>
{/if}